/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package prototype.communication.events;

import java.util.EventObject;

/**
 *
 * @author Server
 */
public class CommunicationEvent extends EventObject {


    private int eventType;
    public static final int ConnectionLost = 0;
    public static final int MessageReceived = 1;
    public static final int ConnectionEstablished = 2;
    public static final int ServerSocketFailed = 3;

    public CommunicationEvent(Object source, int eventType) {
        super(source);
        this.eventType = eventType;
    }

    public int getEventType() {
        return eventType;
    }
}
